package core;

import java.util.ArrayList;
import java.util.UUID;

public class Node {	
	private String id;
	
	private ArrayList<Node> nodes;
	private String teacher;
	private String semester;
	private String date;
	private String meeting;
	private int color;
	
	public Node(){
		this.id = UUID.randomUUID().toString();
		this.nodes = new ArrayList<Node>();
	}
	
	public String getMeeting() {
		return meeting;
	}
	
	public void setMeeting(String meeting) {
		this.meeting = meeting;
	}

	public Node getListElement(int index){
		return nodes.get(index);
	}
	
	public void setListElement(Node node){
		nodes.add(node);
	}

	public ArrayList<Node> getNodes() {
		return nodes;
	}

	public void setNodes(ArrayList<Node> nodes) {
		this.nodes = nodes;
	}

	public String getTeacher() {
		return teacher;
	}

	public void setTeacher(String teacher) {
		this.teacher = teacher;
	}

	public String getSemester() {
		return semester;
	}

	public void setSemester(String semester) {
		this.semester = semester;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public int getColor() {
		return color;
	}

	public void setColor(int color) {
		this.color = color;
	}
	
	public void addNewNode(Node node){
		nodes.add(node);
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
	
}
